Skip to content

Conversation

@keyvankhademi
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Sep 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 24, 2024 6:22pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 24, 2024 6:22pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 24, 2024 6:22pm

@keyvankhademi keyvankhademi changed the title feat(staking): add stake accounts route feat(staking): add stake accounts and supply routes Sep 23, 2024
Copy link
Collaborator

@cprussin cprussin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nits and suggestions, nothing important. Big stuff LGTM

} else {
const pythMint = await stakingClient.getPythTokenMint();
return getResponse(Number(pythMint.supply));
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems a bit odd to me to have a single endpoint that has a query param that enables it to do two totally different and unrelated things. Why not just split these into separate endpoints?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i 100% agree, but let's keep it the same for now since other users are already integrated using this with the old ui.

@keyvankhademi keyvankhademi merged commit 9a6e7d1 into main Sep 24, 2024
6 checks passed
@keyvankhademi keyvankhademi deleted the api branch September 24, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants